import React from "react";
import { AMapScene } from '@antv/l7-react';

class Demo3 extends React.PureComponent{
    constructor(props) {
        super(props);
        this.state={
            data:[],
        }
    }
    componentDidMount() {
        // const _url='http://flightapi.xiexianbo.xin/airPort/listAll'
        // fetch(_url)
        //     .then(response => response.json())
        //     .then(data => {
        //         console.log(data.data.data);
        //         this.setState({
        //             data:data.data.data,
        //         })
        //         console.log(this.state.data);
        //     });
    }
    render() {
        return(
            <>
                <AMapScene
                    option={{}}
                    map={{
                        center: [110.19382669582967, 50.258134],
                        pitch: 0,
                        style: 'light',
                        zoom: 3,
                    }}
                    style={{
                        position: 'absolute',
                        top: 0,
                        left: 0,
                        right: 0,
                        bottom: 0,
                    }}
                >
                </AMapScene>;
            </>
        )
    }
}

export default Demo3